//
//  CSharePersonMgr.h
//  WZEfengAndEtong
//
//  Created by wanzhao on 16/3/18.
//  Copyright © 2016年 wanzhao. All rights reserved.
//

#import <Foundation/Foundation.h>
@class EFengShare;

@interface CSharePersonMgr : NSObject


- (BOOL)insertWithShare:(EFengShare *)share;
- (BOOL)batchInsertWithShareList:(NSArray *)shareList;
- (BOOL)updateWithShare:(EFengShare *)share;
- (BOOL)batchUpdateWithShareList:(NSArray *)shareList;
- (NSInteger)getShareAllUnReadCount;

- (NSArray *)getNewestShareData;


- (NSArray *)getAttentionNewerShareWithMaxTimeStamp:(NSString *)timesTamp;
//加载之前的20条分享
- (NSArray *)getAttentionOlderShareWithMinTimeStamp:(NSString *)timesTamp;

- (BOOL)delShareWithShareId:(NSString *)shareId;
- (BOOL)updateZanWithShareId:(NSString *)shareId isZan:(BOOL)isZan;

- (NSString *)getMaxDateShareWithUserId:(NSString *)userId;
- (EFengShare *)getShareWithShareIndex:(NSInteger)shareIndex;
- (BOOL)delShareWithShareIndex:(NSInteger)shareIndex;
- (NSArray *)getUnSendShare;
- (BOOL)updateShareIsUnNetCompletedWithShare:(EFengShare *)share;
- (NSArray *)getShareListWithSenderUserId:(NSString *)sendUserId;
//加载最新的20条分享
- (NSArray *)getNewerShareWithMaxTimeStamp:(NSString *)timeStamp releaseUserId:(NSString *)releaseUserId;
//加载之前的20条分享
- (NSArray *)getOlderShareWithMinShareTimeStamp:(NSString *)timeStamp releaseUserId:(NSString *)releaseUserId;

//获取我关注的人的分享列表
- (NSArray *)getMineAttentionShareList;

- (EFengShare *)getMaxShareIndexShare;
- (BOOL)updateAllUnreadShareToReadShare;
- (BOOL)updateShareWithShareId:(NSString *)shareId date:(NSString *)date;
- (NSString *)getShareContentWithShareId:(NSString *)shareId;
- (NSString *)getMinDateShareWithUserId:(NSString *)userId;

@end
